package com.gary.demo.listener;

import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@WebListener
public class CustomSessionistener implements HttpSessionListener {
    private final Logger logger = LoggerFactory.getLogger(CustomRequestListener.class);
    @Override
    public void sessionCreated(HttpSessionEvent se) {
        logger.info("CustomSessionistener sessionCreated");
    }

    @Override
    public void sessionDestroyed(HttpSessionEvent se) {
        logger.info("CustomSessionistener sessionCreated");
    }
}
